﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Debugger
{
    public partial class mainForm : Form
    {
        private static mainForm This { get; set; }

        public mainForm()
        {
            This = this;
            InitializeComponent();
        }

        private void mainForm_Load(object sender, EventArgs e)
        {

        }
        public static void WriteLine(string msg)
        {
            if (This.rtfOutput.InvokeRequired)
            {
                This.rtfOutput.Invoke((MethodInvoker)
                    delegate
                    {
                        This.rtfOutput.AppendText(msg + "\n");
                    });
            }
            else
            {
                This.rtfOutput.AppendText(msg + "\n");
            }
        }
    }
}
